<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@page import="com.wed.db.ConnectDB"%>
<%@page import="com.wed.db.cmapstudent"%>
<%@page import="java.util.ArrayList"%>
<%@page import="com.wed.db.RalationConcept"%>
<%@page import="com.wed.db.posiConceptGV"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Welcome</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<%
		int as = Integer.parseInt(request.getParameter("AssignmentId"));
		int ver = Integer.parseInt(request.getParameter("idVersion"));
		String t = request.getParameter("username");
		cmapstudent cm = new ConnectDB().getScore(ver);
		String share = "ReceiveCmStudent.jsp?username=" + t;
		String view = "BTDaLam_SV.jsp?username=" + t;
		String btChuaLam = "BTChuaLamSV.jsp?username=" + t;
		ArrayList<RalationConcept> RlSV=new ConnectDB().getConceptByID(ver);
		ArrayList<posiConceptGV> RlGV=new ConnectDB().getPosiByID(as);
		ConnectDB db=new ConnectDB();
		db.cham(RlSV, RlGV);
ArrayList<String> err= db.listerror;
	%>

	<div id="main">
		<!-- Main starts here -->
		<div id="header">
			<!-- Header starts here -->
			<img src="images/spkt.png" alt="" />
		</div>
		<!-- Header ends here -->
		<div id="navigation">
			<ul>
				<li><a href="#" title=""><font color="black" size="1">Xin
							Chào Sinh Viên:</font></a></li>
				<li><a href="#" title=""><%=t%></a></li>
			</ul>
		</div>
		<div id="contentHolder">
			<!-- Content Holder starts here -->
			<div id="content">
				<!-- Content starts here -->
				<div id="back">


					<div class="clear"></div>

					<div id="leftpart">
						<div class="container">

							<h1>Menu</h1>
							<ul>
								<li><a href="<%=btChuaLam%>">Xem Bài Tập Được Giao</a></li>

								<li><a href="<%=view%>">Xem Bài Tập Đã Làm</a></li>
								<li><a href="<%=share%>">Bài Tập Được Share</a></li>
								<li><a href="#"></a></li>
								<li><a href="#"></a></li>
								<li><a href="#"></a></li>
							</ul>
							<div class="button">
								<input type="button"onclick="location.href='DangNhap.jsp'" value="Thóat" class="learnmore"  />
							</div>
						</div>
					</div>

					<div id="middlepart">
						<a><h1>Kết Quả Bạn Đạt Được</h1></a>
						<table>
							<tr>
								<td><label>Vesion</label></td>
								<td><label><%=ver%></label></td>
							</tr>
							<tr>
								<td><label>Assignment</label></td>
								<td><label><%=as%></label></td>
							</tr>
							<tr>
								<td><label>Kết Quả</label></td>
								<td><label><%=cm.getScore()%></label></td>
								</tr>
									<td><label>Error</label></td>
							<% 	 for(String e : err){
                %>
			<tr>
		

				<td><%=e%></td>
				
			</tr>
			<%} %>
								
						</table>
					</div>



					<div class="clear"></div>
					<!--<div class="bottomImg"><img src="images/bottomBg.png" alt="" /></div>-->
				</div>
			</div>
			<!-- Content ends here -->
		</div>
		<!-- Content Holder ends here -->
		<div class="bottomImg">
			<img src="images/02.png" alt="" />
		</div>



		<div id="footer">
			<!-- Footer starts here -->
			<div lang="copy">Copyright 2010 Your Company Name</div>
			<div class="design">
				<a href="http://studio7designs.com/portfolio/">Designed by
					STUDIO7DESIGNS</a>
			</div>
			<div class="clear"></div>
		</div>
		<!-- Footer ends here -->
	</div>
	<!-- Main ends here -->
</body>
</html>